﻿/******************************************************************************
 *  作者：       Maxzhang1985
 *  创建时间：   2012/4/28 16:10:58
 *
 *
 ******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExORMDesginer.Plugin;
using System.ComponentModel.Composition;
using ExtendPropertyLib.WPF;

namespace ExORMDesginer.Services
{
    
    public class MasterHost:IHost
    {
        private static MasterHost _instance = null;
        [Export(typeof(IHost))]
        public static MasterHost Instance
        {
            get
            {
                if (_instance==null)
                {
                    _instance = new MasterHost();
                }
                return _instance;
            }
        }
        

        public IMainViewModel ViewModel { set; get; }

        public IMainView View { set; get; }

        public List<DbEntity> Tables
        {
            set;
            get;
        }

        
        public IWindowManager WindowManager { set; get; }


    }
}
